//
//  BSHyCollectionViewCell.m
//  BaiSiBuDeJie
//
//  Created by uproject on 16/8/29.
//  Copyright © 2016年 tsaievan. All rights reserved.
//

#import "BSHyCollectionViewCell.h"
#import "hyTableViewController.h"

@interface BSHyCollectionViewCell ()
@property(nonatomic, strong) hyTableViewController *table;

@end

@implementation BSHyCollectionViewCell
- (void)setHyModel:(HyScrollViewModel *)hyModel{
    _hyModel = hyModel;
    self.table.hyModel = hyModel;
    
}
- (void)awakeFromNib{
    
    UIStoryboard *story = [UIStoryboard storyboardWithName:@"hytableView" bundle:nil];
    
    hyTableViewController *table = [story instantiateInitialViewController];
    
    self.table = table;
    
//    table.view.frame = self.contentView.bounds;
    
    [self.contentView addSubview:table.view];
    [self.table.view mas_makeConstraints:^(MASConstraintMaker *make) {
        
        make.left.right.bottom.top.equalTo(self.contentView).offset(0);
        
    }];
    
}

@end
